#ifndef MICROBLOGMANAGER_H
#define MICROBLOGMANAGER_H

#include <QObject>
#include <QUrl>
#include <QByteArray>
#include <QtScript/QScriptEngine>
#include <QtScript/QScriptValue>

#include "contentmanager.h"
#include "model/microblog.h"

class MicroBlogManager : public ContentManager
{
    Q_OBJECT
public:
    explicit MicroBlogManager();

    void createMicroblog(const QString &desc, int spaceId = -1);
signals:
    void handleData(bool result);
private slots:
    void parseData(QScriptValue json, const QString &msg);
};

#endif // MICROBLOGMANAGER_H
